//
//  ClickButtonInListenFMRootClass.m
//  LCOnePsychology
//
//  Created by li cheng on 16/09/03
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "ClickButtonInListenFMRootClass.h"
#import "ClickButtonInListenFMData.h"

@implementation ClickButtonInListenFMRootClass

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [ClickButtonInListenFMData class]};
}

- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<ClickButtonInListenFMData *> *mArrayOfClickButtonInListenFMData = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            ClickButtonInListenFMData *clickButtonInListenFMData = [ClickButtonInListenFMData modelDic:dic];
            [mArrayOfClickButtonInListenFMData addObject:clickButtonInListenFMData];
        }
        _data = mArrayOfClickButtonInListenFMData;
    }
}
@end
